<?php

class FormSection extends TemplateLoader
{
	public $Name = 'undefined';
	public $Controls = array( );
	public function FormSection()
	{
		parent::__construct( );
				
		$this->Module = 'System/Controls/Forms';
		$this->Template = 'templates/FormSection.tpl';
	}
	public function LoadPostData( )
	{
		$success = true;
		foreach($this->Controls as $c)
			if(method_exists($c, 'LoadPostData'))
				if(!$c->LoadPostData( ))
					$success = false;
		return $success;
	}
	public function RenderControls( )
	{
		foreach($this->Controls as $c)
			$c->Render();
	}
}
